package com.fenghuajueli.module_home.db

import androidx.room.*
import kotlinx.coroutines.flow.Flow

@Dao
interface ClockinPlanDao {

    @Update
    fun updateClockinPlanEntity(clockinPlanEntity: ClockinPlanEntity): Int

    @Insert
    fun insertClockinPlanEntity(clockinPlanEntity: ClockinPlanEntity): Long

    @Query("SELECT * FROM clockinPlan")
    fun loadAllData(): Flow<List<ClockinPlanEntity>>

    @Query("SELECT * FROM clockinPlan where remindTime = :time")
    fun queryDataByTime(time: String): ClockinPlanEntity?

}